<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>五彩导航</title>
    <!-- 
        1.链接属于行内元素，此时需要宽度高度，模式转换 block inline-block
        2.里面文字需要水平居中， text-align
        3.连接需要设置背景图片  background-image,
        4,鼠标经过变化图片，伪类连接器 hover
     -->
    <style>
        .nav a {
            display: inline-block;
            width: 135px;
            height: 88px;
            background-color: pink;
            text-align: center;
            text-decoration: none;
            line-height: 80px;
            color: white;
        }

        .nav .bc1 {
            background: url(../素材/bc1.png) no-repeat;
        }
        .nav .bc1:hover {
            background-image: url(../素材/bc11.png);
        }
        .nav .bc2 {
            background: url(../素材/bc2.png) no-repeat;
        }
        .nav .bc2:hover {
            background-image: url(../素材/bc22.png);
        }
        .nav .bc3 {
            background: url(../素材/bc3.png) no-repeat;
        }
        .nav .bc3:hover {
            background-image: url(../素材/bc1.png);
        }
        .nav .bc4 {
            background: url(../素材/bc11.png) no-repeat;
        }
        .nav .bc4:hover {
            background-image: url(../素材/bc2.png);
        }
        .nav .bc5 {
            background: url(../素材/bc22.png) no-repeat;
        }
        .nav .bc5:hover:hover {
            background-image: url(../素材/bc3.png);
        }
    </style>
</head>
<body>
    <div class="nav">
        <a href="#" class="bc1">五彩导航</a>
        <a href="#" class="bc2">五彩导航</a>
        <a href="#" class="bc3">五彩导航</a>
        <a href="#" class="bc4">五彩导航</a>
        <a href="#" class="bc5">五彩导航</a>
    </div>
</body>
</html>